

package jetbrains.buildServer.server.rest.data.problem;

import jetbrains.buildServer.serverSide.ShortStatistics;
import org.jetbrains.annotations.Nullable;

public class TestOccurrencesCachedInfo {
  @Nullable
  private final ShortStatistics myShortStatistics;
  private final boolean myFilteringRequired;

  public static TestOccurrencesCachedInfo empty() {
    return new TestOccurrencesCachedInfo(null, false);
  }

  public TestOccurrencesCachedInfo(@Nullable ShortStatistics shortStatistics, boolean filteringRequired) {
    myShortStatistics = shortStatistics;
    myFilteringRequired = filteringRequired;
  }

  @Nullable
  public ShortStatistics getShortStatistics() {
    return myShortStatistics;
  }

  public boolean filteringRequired() {
    return myFilteringRequired;
  }
}